// 应用配置
export const APP_CONFIG = {
  // 应用信息
  name: '中医理疗馆AI助手',
  version: '1.0.0',
  description: '专业的中医理疗咨询AI助手',
  
  // 主题配置
  theme: {
    primary: {
      50: '#f0f9ff',
      100: '#e0f2fe',
      200: '#bae6fd',
      300: '#7dd3fc',
      400: '#38bdf8',
      500: '#0ea5e9',
      600: '#0284c7',
      700: '#0369a1',
      800: '#075985',
      900: '#0c4a6e',
    },
    secondary: {
      50: '#f8fafc',
      100: '#f1f5f9',
      200: '#e2e8f0',
      300: '#cbd5e1',
      400: '#94a3b8',
      500: '#64748b',
      600: '#475569',
      700: '#334155',
      800: '#1e293b',
      900: '#0f172a',
    }
  },
  
  // 功能配置
  features: {
    enableSearch: true,
    enableHistory: true,
    enableMemory: true,
    maxMessageLength: 1000,
    autoScroll: true
  },
  
  // UI配置
  ui: {
    sidebarWidth: '320px',
    maxConversationWidth: '768px',
    animationDuration: 200,
    debounceDelay: 300
  }
}

// 获取配置值
export const getConfig = (key) => {
  const keys = key.split('.')
  let value = APP_CONFIG
  
  for (const k of keys) {
    if (value && typeof value === 'object' && k in value) {
      value = value[k]
    } else {
      return undefined
    }
  }
  
  return value
} 